import request from "@/config/utils/request";

// 基本信息相关接口
// 填报单位
export function listUserPartJobComInfo(data) {
  return request({
    url: "/apis/smp/basic/listUserPartJobComInfo",
    method: "POST",
    data
  });
}

// 供应商列表
export function listSmpPcConcSupplierPage(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpPcConcSupplierPage",
    method: "POST",
    data
  });
}

// 合同名称
export function listSmpPcConcByPartyBId(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpPcConcByPartyBId",
    method: "POST",
    data
  });
}

// 清单弹框List不分页
export function getSmpPcConcMatListById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcMatListById",
    method: "POST",
    data
  });
}

// 清单弹框List分页
export function getSmpPcConcMatListForOrderById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcMatListForOrderById",
    method: "POST",
    data
  });
}

// 地区
export function getRegion(data) {
  return request({
    url: "/apis/smp/basic/qryAreaAddress",
    method: "POST",
    data
  });
}

// 保存
export function saveOrder(data) {
  return request({
    url: "/apis/smp/ocorder/saveOrder",
    method: "POST",
    data
  });
}

// 编辑
export function editOrder(data) {
  return request({
    url: "/apis/smp/ocorder/editOrder",
    method: "POST",
    data
  });
}

// 提交
export function enteringApproval(data) {
  return request({
    url: "/apis/smp/ocorder/enteringApproval",
    method: "POST",
    data
  });
}

// 列表
export function listPageOrder(data) {
  return request({
    url: "/apis/smp/ocorder/listPageOrder",
    method: "POST",
    data
  });
}

// 删除
export function removeOrder(data) {
  return request({
    url: "/apis/smp/ocorder/removeOrder",
    method: "POST",
    data
  });
}

// 撤回
export function enteringRevokeApproval(data) {
  return request({
    url: "/apis/smp/ocorder/enteringRevokeApproval",
    method: "POST",
    data
  });
}

// id查询
export function getOrder(data) {
  return request({
    url: "/apis/smp/ocorder/getOrder",
    method: "POST",
    data
  });
}

// 订单查询供应商信息
export function listSmpPcConcSupplierPageToOrder(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpPcConcSupplierPageToOrder",
    method: "POST",
    data
  });
}

// 根据合同编码 查询该合同的清单 的所有厂家品牌
export function listManufacturerBrandByContractCode(data) {
  return request({
    url: "/apis/smp/smppcconc/listManufacturerBrandByContractCode",
    method: "POST",
    data
  });
}
// 根据合同和大类编码 查询合同清潭
export function listSmpBrandRelation(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpBrandRelation",
    method: "POST",
    data
  });
}

// 订单新增暂存

export function tempSaveOrder(data) {
  return request({
    url: "/apis/smp/ocorder/tempSaveOrder",
    method: "POST",
    data
  });
}
// 订单新增暂存

export function tempEditOrder(data) {
  return request({
    url: "/apis/smp/ocorder/tempEditOrder",
    method: "POST",
    data
  });
}
